---
layout: "default"
title: "_ImageLiteralConvertible"
description: "Swift documentation for '_ImageLiteralConvertible': Conforming types can be initialized with image literals (e.g.
[#Image(imageLiteral: &quot;hi.png&quot;)#])."
keywords: "_ImageLiteralConvertible,protocol,swift,documentation"
root: "/v2.1"
---

<div class="intro-declaration"><code class="language-swift">protocol _ImageLiteralConvertible</code></div>

<div class="discussion comment">
    <p>Conforming types can be initialized with image literals (e.g.
<code>[#Image(imageLiteral: &quot;hi.png&quot;)#]</code>).</p>
</div>

<table class="standard">



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>


<h3>Initializers</h3>
<div class="declaration" id="init-imageliteral_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-imageliteral_">init(<wbr>imageLiteral:)</a> <span class="required">Required</span><div class="comment collapse" id="comment-init-imageliteral_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">init(imageLiteral: String)</code>

    </div></div>
</div>







